package com.toobigtofail.posevo
{
	import net.flashpunk.FP;
	import net.flashpunk.World;
	import net.flashpunk.utils.Input;
	import net.flashpunk.utils.Key;
	
	public class Game extends World
	{
		private var _pontiac:PontiacOnSteroids = new PontiacOnSteroids(100,100);
		
		public function Game()
		{
			super();
		}
		
		override public function begin():void {
			//FP.screen.color = 0xFFFFFF;
			add(_pontiac);
		}
		
		override public function update():void {
			super.update();
			
			if (Input.check(Key.LEFT)) {
				_pontiac.x -= 3;
			} else if (Input.check(Key.RIGHT)) {
				_pontiac.x += 3;
			} else if (Input.check(Key.UP)) {
				_pontiac.y -= 3;
			} else if (Input.check(Key.DOWN)) {
				_pontiac.y += 3;
			}
		}
	}
}